import { request } from '../request';

/** get list */
export function chatUserList(params: Api.SystemManage.ChatUserSearchParams) {
  return request<Api.SystemManage.ChatUserList>({
    url: '/chatUser/list',
    method: 'post',
    data: params
  });
}

/** save */
export function chatUserSave(params?: Api.SystemManage.ChatUserSaveParams) {
  return request<boolean>({
    url: '/chatUser/add',
    method: 'post',
    data: params
  });
}

/** update */
export function chatUserUpdate(params?: Api.SystemManage.ChatUserUpdateParams) {
  return request<boolean>({
    url: '/chatUser/update',
    method: 'post',
    data: params
  });
}

/** get */
export function chatUserGet(params: { id: string }) {
  return request<Api.SystemManage.ChatUser>({
    url: '/chatUser/get',
    method: 'post',
    data: params
  });
}

/** del */
export function chatUserDel(params: { id: string }) {
  return request<boolean>({
    url: '/chatUser/del',
    method: 'post',
    data: params
  });
}

/** delBatch */
export function chatUserDelBatch(params: { ids: Array<string> }) {
  return request<boolean>({
    url: '/chatUser/delBatch',
    method: 'post',
    data: params
  });
}
